allow switching of views