Swap states

The application now has two states.