hot fix for page switching back