Fixed the title for the application.
Added the code to save state but loading of the state is not working properly.