bundle ticket actions into function