Move capture/release mouse function to she layer