added loading state and checkout tweaks