fixed eraser button and added selected classes to buttons when clicked

There is a some code that is commented out, you don't need it, I am just testing out somethings