remove unnecessary view check and close