Implement set view mode function in side menu