Added View state changing functionality

Added view state changing functionlaity to channels, folders and event
views.