changed trip params and added dialog