Added auto update table functionality