permalink feature, more robust view switching