Implemented homescreen theme function
Fixing pref check for onresume