Fixed some mouse and ruler issues and made the ruler seperate