small fix and big format

validateMenu now checks if user has Marked. If not, the menuitem for
"Preview in Marked" is disabled and hidden.

Also, I re-indented all of AppController. Hope that's alright