fixed undefined index notices
adding new page for functions