Added  stage enum to the State. Fixed an issue the mapview. Added some
event handling.