got edit button to work but there are a lot of issues...