added loading views and finished details view