added logo to index and moved working API call to model