Move controller to controllers file