finished the functions
started to implememnt the rotate button