Fixed canLeave functioinality. Added sample canLeave usage. Reworked history usage and back navigation. Great canLeave improvement. Little fixes.