moved theme seleciton into a hook