Fix a bunch of incorrect indentation and some minor code changes
Don't crash if the user selects the placeholder and tries to stream or pair