Added guides and fixed bug when user clicks cancel.
Fixed logic for guides