Added mouse locking feature