initial implementation of edit interface,need to be tested