check for showing only published articles