starting handling of if, show, and hide.