Added action listener and offline button