first commit
removed duplicate code
added loading dots