added onclicklisteners for nav buttons