updated selector code, hidden loader