Implement conditions to check if device is unlocked
Fix isDeviceUnlocked method
Fix graphical bug
Fix logic bug