Move constants from controller to view