Merged DebugMerge and master with some bugs.
Added searchthread.cpp/.h to tracked and added max size for buttons.