Added function to retry connection to FLASK if is lost
Added POPUP to user telling that the connection has been lost/restablished
TODO: Implement the same functionality to POS products loading. If the connection gets lost in the middle of the loading pause it until the connection is restablished.