fix dispaly bug, also has a bug about checkbox