fix alert message about incorrect data. add refresh page