pre implementing history api