Cleared up the code a bit, made it rotate a set of views