Added a cancel button to the attributes menu. Removed a piece of dead code created by my last commit.