added application class and renamed mainactivity