remove the display style on the correct element