corrected bug with apply folding which didnt work anymore
details and UI improvement