added ability to use different views