Added Modal type to binding and added click event for close modal icon.