Added the view selection dtopdown and implementted the functionality to each view