Loading sign based on stacks

When called twice 'loading_run', the loading icon won't dissapear untill 'loading_stop' is called twice.
Small bugs fixes.