displaying 'loading' animation when the file contents are being loaded into the text pane