implemented email state change on click of email via ui-router stat params