Example of how to use openView and openDetail completed