fix some hardcoded values
toolbar, remove unsed stuff, text edit dialog