added edit button and nav bar