add ajax for get omptimal route