Added bi-directionial page transisions, dependent on previous page state.