Battery box for button cells with magnet lid