working Post and GET
pagination fix