Function overhaul

completely changed how the made will be handled, doing away with tables
and keeping it as floating div tiles, this does however change the
required number of zIndex levels to 4, I'll see if I can nest levels 1&2
somehow.