check if basedir exists
[View] fix page_pics bug
cosmetic changes