allow switching on index page