user can set start and end vertex with mouse