refactored routing to use ui-router; added deletion of messages; removed reload hack from new message