fix discussions - no need of a page reload after minimization
fix set filename - sometimes the filename was not set