add preHandler for Application