refactored tags updating from form