Close off functions, add update class text when updating