add delegate for loading action