Updated code to Display Grid with Click functionality.