created a view for handling post updates and also added pagination