Added connection check

If no connection when opening the app then it disables the buttons and
shows a message. Then starts a timer to keep checking the connection