make pushState check extandable