finish load functionality