Add if statement for announcements controller