Edit file handler