added manual edit functionality