Refactor Controller. Make it abstract class. setVars() == process()