single and delete buttons logic added