adding functionality to the buttons either for navigation or for
add/edit