allow users to select starting and ending point