Created cycle factory and added view click listeners