Adding popupTemplate -> input thanks to Ramnath