change text color according to network status
removed TODOs
fix size at the beginning of the procedure (might fix reported ArrayIndexOutOfBoundsException)