fix css and add eventdispatcher