Move FilePicker before connectSocketAsync

Move FilePicker before connectSocketAsync