fix a bug about num dispaly and replace bind() with on();