adding paths, buttons and functionality