Added buttons for paging, not implemented yet
fixed the view details link to stay in the public area