fix dm server logic and dm front style