update views after adding record