 Button sp_button = Button(0,BOXSIZE,BOXSIZE,BOXSIZE,ILI9341_GREEN,true,&tft);
 Button temp_button = Button(0,BOXSIZE*2,BOXSIZE,BOXSIZE,ILI9341_BLUE,true,&tft);
 Button alarm_button = Button(260,200,BOXSIZE,BOXSIZE,ILI9341_RED,true,&tft);
-Button confirm_button = Button(0,200,BOXSIZE,BOXSIZE,ILI9341_LIGHTGREY,true,&tft);
+Button confirm_button = Button(0,200,BOXSIZE,BOXSIZE,ILI9341_GREEN,true,&tft);
 Button mode_button = Button(BOXSIZE*2,200,BOXSIZE,BOXSIZE,ILI9341_LIGHTGREY,true,&tft);
-Button cancel_button = Button(BOXSIZE*3,200,BOXSIZE,BOXSIZE,ILI9341_LIGHTGREY,true,&tft);
-Button default_button = Button(tft.height()-BOXSIZE,BOXSIZE,BOXSIZE-10,BOXSIZE,ILI9341_LIGHTGREY,true,&tft);
+Button cancel_button = Button(WIDTH-BOXSIZE,200,BOXSIZE,BOXSIZE,ILI9341_RED,true,&tft);
+Button default_button = Button(WIDTH-2*BOXSIZE-18,BOXSIZE,BOXSIZE,BOXSIZE-20,ILI9341_LIGHTGREY,true,&tft);
 // Create settings page buttons
 
 /*for ECGMin value*/

 * product_title() - prints product name and version no.
 */
void product_title(){
  createHLabel(BOXSIZE + 20, 0, Title, 1, ILI9341_WHITE);
  createHLabel(BOXSIZE + 40, 10, Version, 1, ILI9341_WHITE);
  
  /* create border */
  tft.drawFastVLine(BOXSIZE + 17, 0, 20, ILI9341_WHITE);

  if (currentMode == HOMESCREEN){
    MainScreenInit();
    stopAlarm();
    int delay_touch_detection = 10000;
    for (int i = 0; i < delay_touch_detection; i += 1) {
        if (!ts.bufferEmpty()){
            volatile TS_Point tossout = getFixedCoordinates();
        }
    }
    while (currentMode == HOMESCREEN){
  		if (display_count >= 10) {
    		ecg.display_signal();
