Fixed tables and Added auto refresh option

added some error checks too