removed legacy code
removed some minor differences to etabard's code
page preview & shadow fix