Refactored select2 tags selection and tag input to get rid of crazy if statements