input text refactor for FFOS app