fixed bug in saving app state for running/submitted app; style tweaks again