several fixes including improving the messages display and adding a new validation for javascript alerts