add variables to controller