added a macro to help create the default view