imporvement and add file state into status bar