Removing unused  reference in controller