changed buttons and added checkIsIpRunning