added Ui and pagination for post