include JQ-UI for addClass-extention, update open-close mainPage function