Changed if/else statements to switch and adding Maven build enforcement for Java 7. Also retaining variables across page actions on the frontend. This fixes #4.