added logic to load a saved equation