added navbar
added load spinner and dealt with data error