further modularization of loader bar