code clarification - removed unused directive and state - setting up proper model and services