fix button type
Added delete functionality