Added a ActionListener to the create polygon button
Moved the ActionListener for the polygon switcher to a seperate class
Added suppress warnings
Code clean up