Update the code in the view