tweaks on hmi buttons and added couting