Added edit and delete button and also wrote code to make them work