added viewpanel html and basic function