Added ability to change views