fix bug in error handler
tune gii generator
added dynamic menu