add load functionality to modal