Menu controller add edit function