Fixed buttons.
Moved most of the things into assetloader.