select visible messages now only selects visible messages