Why my edit button is not working?