added anchor panel. remove more dead code