extract api auth method and add fade transitions