Working on ubuntu! Added actual editing (!) as well as state preservation across orientation changes.