Great refactoring the paste logic and move it into the controller.