Activity indicator has been encapsulated in order to be reused