Defined decorator helper method state_to_message
Removed more logic from this view