routes adjustments and improved ajax/jquery for details