change input background color on move