switching table view mode