Fix usage of setup_view. Instantiate view before calling the function.