Added mainbar to pages
Fixed debug, dropdownDialog, Template-Problem and DBField-Missspelling