Split up controller into smaller methods
Merge remote-tracking branch 'origin/master'