Renaming the not_connected layout to activity_main_not_connected layout.
Some modifications on the code to make it more readable/managebale.
Added warning icon.