Refactored goToFolder/goToMail functions to trigger client-side navigation