moved each views render code to their respective controllers