Updates search text when submitting