Fix pushstate, add gradients