delete main ctrl fix some bug