separated post view in own class