move event handler, adjust css