in default view, data variable seems to be very confusing name, create another function to protect scope of show function