restructure getVisibleNotices()

check conditions for notices which dismissed are not necessary