saving form in a better way