Add pages for user panel, some changes in the code.