fix different views switch