fix mail and sub view problem