added rotate method and click listener