Fixed slide panel saving re-direct path
refactored code