made it so new view appears on click