core, close, open, mobile & layout detection - done, events - wip