added ask functionality to nav bar and pages