Cleaned up app initialization code.
Added a link to 'Main Page' button.