Added locking of buttons to all pages