Added buttons to redirect between patient and pain pages correctly. Added filter to results in view pages.