clear input field after submit, refresh list correctly