added editing support (hacky but working!!!)
using tabs