added second view class and button to switch between views