fixed up navigation buttons and added working edit button