add isAllowedtoNavigate