added css and client event handlers