loading activity indicator code added