add delete functionality on client side with server allow