alert message displaying for dictionary app