Refactor pull request all into seperate controller