added buggy layout code

this sucks :(