refactored save and redirect on Table