Removed some variables, added formating, focus textinput when opening comment dialog.