Allow objects to be passed to views