update front-end - category dissappears from text field if it was added successfully