fixed changing view mode