A lot of helpers and fixes for responsive mode