Refactoring appdesk js, use splitter only if needs, improve resize