Add contract view Fixes #234