Dealt with the back button. Added support for multi-directional flows.