implemented checkbox like features