added viewbadge

change some layouts