Set up views and create and edit records