Added loader indicator and moved loading process to another thread