added model loading to application