added html for loader template. added promise based loading, should go into function call to make it async