review and improve banner related code in trap project