Refactors camera controller