handling url segment params