Changed update button to cell d click. Also fixed table not clearing issue