making activity to display posts