frontend routing bug fix