fix when there is no content in input field, the loading is still there
modify gitignore