Method to override default navigation class used for modal