refactor security file and routing file for requare crud views adn controllers