added loading state for content to avoid flash on loadcontent