adding loading option