Code is not running completely with action centre

@Learner007 adde it now