Added Log button and result button and added dynamic grid to display result.