implemented initial loading feature