working on fx and route for each pages