Add view methods to an object