edit maintable