next and previous page buttuns created.
user will be redirected to 404 if specified resource does not exist