fixes #28 Theme switch doesn't close after selecting the theme