added functionality to create new records and view them afterwards