fix some bug for admin dialog