moves views into templates