adding loading effect