Why it is changing views on LCD?

Iam facing with this problem for a while now and i didn’t find solution yet, can you please help me.

When it gets in Alarm mode it is switching bet-twine normal view and alarm view do you maybe know why?

void(alarmMIN(void));
void(alarmMAX(void));

void setup(void)
{
  pinMode (tipkaPlus, INPUT);
  pinMode (tipkaMinus, INPUT);
  pinMode (tipkaSet, INPUT);
  pinMode (tipkaEnter, INPUT);
  lcd.begin(16, 2);
  sensors.begin();
  Serial.begin(9600);
} 
void loop(void)
{   
  float tempC=sensors.getTempCByIndex(0);
  sensors.requestTemperatures();
  //Trenutna temperatura
  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("Termometer");
  lcd.setCursor(0,1);
  lcd.print(tempC,1);  
  lcd.print(" C");
 
  meetAndroid.send(tempC);
  
if ((digitalRead (tipkaSet)) != 0) nastTemp();

if ((tempC > countMax) !=0) alarmMAX();

if ((tempC < countMin) !=0)  alarmMIN();  

}

/////////////////////ALARM MAX///////////////////////////////
void alarmMAX(void) 
{
   float tempC = sensors.getTempCByIndex(0);
   sensors.requestTemperatures();
   lcd.clear();
   
   do 
     
     {
        delay(100);
        lcd.setCursor(0,0);
        lcd.print("    ALARM!!"); 
        lcd.setCursor(0,1);
        lcd.print("High temp");  
      }
   while (tempC < counterMax);   
   
}
//////////////////////ALARM MIN//////////////////////////////
void alarmMIN(void) 
{
   float tempC = sensors.getTempCByIndex(0);
   sensors.requestTemperatures();  
   lcd.clear();
  
   do 
    
      {
        delay(100);        
        lcd.setCursor(0,0);
        lcd.print("    ALARM!!"); 
        lcd.setCursor(0,1);
        lcd.print("Low temp");  
       }
   while (tempC > counterMin);
}
/////////////////////////////////////////////////////////////

EDIT : second thoughts on my question !

Where is the rest of your code ?

Here is rest of the code

#include <OneWire.h>
#include <DallasTemperature.h>
#include <LiquidCrystal.h>
#include <MeetAndroid.h>
#define ONE_WIRE_BUS 10
void(nastTemp(void));
void(nastMAX(void));
void(nastMIN(void));
void(alarmMIN(void));
void(alarmMAX(void));
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
OneWire oneWire(ONE_WIRE_BUS); 
DallasTemperature sensors(&oneWire);
MeetAndroid meetAndroid;
const int tipkaPlus = 9;
const int tipkaMinus = 8;
const int tipkaSet = 7;
const int tipkaEnter = 6;
int stevecMax = 25;
int stevecMin = 20;

void setup(void)
{
  pinMode (tipkaPlus, INPUT);
  pinMode (tipkaMinus, INPUT);
  pinMode (tipkaSet, INPUT);
  pinMode (tipkaEnter, INPUT);
  lcd.begin(16, 2);
  sensors.begin();
  Serial.begin(9600);
} 
void loop(void)
{   
  float tempC=sensors.getTempCByIndex(0);
  sensors.requestTemperatures();
  //Trenutna temperatura
  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("Termometer");
  lcd.setCursor(0,1);
  lcd.print(tempC,1);  
  lcd.print(" C");
  // 
  meetAndroid.send(tempC);  
if ((digitalRead (tipkaSet)) != 0) nastTemp();
if ((tempC > stevecMax) !=0) alarmMAX();
if ((tempC < stevecMin) !=0)  alarmMIN();  
}
///////////////// NASTAVITEV TEMPERATURE////////////////////    
void nastTemp(void)  
{
    lcd.clear();
    do 
     {
      delay(100);
      lcd.setCursor(0,0);
      lcd.print("Nastavi Alarm");
      lcd.setCursor(0,1);  
      lcd.print(" -MIN   +MAX");

       if ((digitalRead (tipkaPlus)) !=0) nastMAX(); 
    
       if ((digitalRead (tipkaMinus)) !=0) nastMIN();  
      }
    while ((digitalRead (tipkaEnter)) != 1);    
}
  //////////////////NASTAVITEV MAX///////////////////////////
void nastMAX(void)
{    
     lcd.clear();
     do    
     {  
      lcd.setCursor(0,0);
      lcd.print("Nastavi MAX");
      lcd.setCursor(0,1);  
      lcd.print(stevecMax);
      lcd.print(" C"); 
      delay (1000);
    // nastavis vrednost stevec
      if ((digitalRead (tipkaPlus)) !=0)
         { 
           stevecMax ++;
           delay (1000);
         } 
      if ((digitalRead (tipkaMinus)) !=0)
         { 
           stevecMax --;
           delay (1000);
         }   
       }
    while ((digitalRead (tipkaEnter)) != 1);
}

///////////////////NASTAVITEV MIN///////////////////////////
void nastMIN(void)
{
    lcd.clear();    
    do    
    {      
     lcd.setCursor(0,0);
     lcd.print("Nastavi MIN");
     lcd.setCursor(0,1);  
     lcd.print(stevecMin);
     lcd.print(" C"); 
     
   // nastavis vrednost stevec
     if ((digitalRead (tipkaPlus)) !=0)
         { 
           stevecMin ++;
           delay (1000);
         } 
     if ((digitalRead (tipkaMinus)) !=0)
         { 
           stevecMin --;
           delay (1000);
         }   
       }
    while ((digitalRead (tipkaEnter)) != 1);   
}

/////////////////////ALARM MAX///////////////////////////////
void alarmMAX(void) 
{
   float tempC = sensors.getTempCByIndex(0);
   sensors.requestTemperatures();
   lcd.clear();   
  
 do 
     {
        delay(100);
        lcd.setCursor(0,0);
        lcd.print("    ALARM!!"); 
        lcd.setCursor(0,1);
        lcd.print("Previsoka tempe");  
      }
   while (tempC < stevecMax);   

}
//////////////////////ALARM MIN//////////////////////////////
void alarmMIN(void) 
{
   float tempC = sensors.getTempCByIndex(0);
   sensors.requestTemperatures();  
   lcd.clear();
  
   do     
      {
        delay(100);        
        lcd.setCursor(0,0);
        lcd.print("    ALARM!!"); 
        lcd.setCursor(0,1);
        lcd.print("Prenizka tempe");  
       }
    while (tempC > stevecMin); 
}
/////////////////////////////////////////////////////////////

Function alarmMax() is called because tempC > stevecMax

  if ((tempC > stevecMax) !=0) alarmMAX();

What a strange way of making the comparison

The program stays in alarmMax while tempC < stevecMax

  while (tempC < stevecMax);

so the function is exited immediately

Mind you, that is just as well, because nothing in the do loop changes tempC, so if the logic was correct the program would stay in the function forever.