added notification counting and home button clicking