Added disabling of input when connection is offline