fix onchange events for start and end (hooray!)