added a close button in the object select span
added a method to delete object