clear input fields and sync