updated edit-pdf view to work with meta and working update function