Add edit functionality to latest note