Threading for loading (and added spinner while that)