added preference in xml for wake lock