implement scroll to selected element