add resistance and mouseevent