Added ui locking in console