add spinner and input events