add file status observer and add switch to control float window