Simplified changeTheme function.

Simplified the change theme function. Now it doesn't refresh the page
when the theme is changed. (tested in chrome)..