 there is a "TypeError: string index must be an integer" error when executing the view_statictable() function