added mouse locking/unlocking
finished mouse locking