goTo function since ionic tabs don't seem to work with ui-sref to go to a state