history API fixes

updated to that a history pushstate is fired on default page load (so
that back button fuctions)