adds loader when user has to wait