Centralize loaded volume in 3d View

I am working on a slicelet. Whenever I loads a volume, the volume is not centralized w.r.t 3d view axis. How can I do that ?

@tarun14110 Let us know if Isaiah’s answer did not fulfill your needs.