Updating the ctontroller