Added feature of deleting measurement and re-rendering the view on deletion.