Moved some gui stuff in the async tasks and and fixed the username store