adding table handlers
minor pep8 fixes
adding i frame