Implemented a view type selector