updated Pushstate helper