converted page stack selector widget to typescript, and added testing module for it