fixed behaviour of back/forward browser buttons