Added selected functionality