Adding hiding of online/offline boxes in else statement.