now logic working with loader and countdown