add pubsub events,and add focus,keyup event