using Alarm manager to schedule some tasks