make resize mode work
make edit mode work