added loading on stateChange
Added some default bootstrap styling