fix layout control

now the settings button should be rendered propely
refactor htmlayout control

extract shape-sheet related stuff from the control
#SSW-1 in progress