Refactor and improve code in controllers

- use common before_action load_project which would be defined in the application_controller and then will be called from different places.