added statemachine. also loading view and fullscreen map view. all work ( not tested compiled )
fixed compiler warnings