handle initial state on all browsers