dividing into controllers