added views for all post and single post