Refactor IMDb api code and initial view rendering