fix display issues on preferences activity
stop duplicate instances of the preferences activity