activate loader
option to close loading spinner