optimise util class and add navigate to url keyword