added full functionality to page