added rotate up and down functionality