Fixed the toolbox, and made it rotate based on placement