added refresh and loading overlay
embedded routes in js
fixed UI, 0000 train bug and when no data is present