Code tidy up
Fixed orderby bug
Changed firebase url here and there tried to fix redirect bug back from edit