search page added pagination + working buttons