view code for 'new'