add category and viewtype servlet