Adding lock button to MainActivity.