Implemented toolbars buttn functions, but xcode is freezing now. Must restart