page redirect bug fixes