clear selection implementation