makes the announcements display and hide correctly