refactored management panel to work with recent js libs