Updates styling and box closing functions.