fix web error. npe and no post edit function
Delete unused class