view all, view one, add and search functions