makes it work with MINIMAL.css - but the code is tooo messy - this needs a better approach