edit files modal + some fixes