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