Changed the cross button, so that it wont close the flow graph automatically