detail view implementation with ui-router