trying to make magic record editing popup