switch from split view to toggle view -  dynamically