moved the remove formating to the next run loop to ensure the dom update has occured