refactoring hide current interaction and delete option in element selector