HC-05 Disconnecting After 2 seconds

You have the HC05 connected to the hardware serial (pins 0 and 1) on the Uno? Those pins are also connected to the USB to serial chip on the Uno. Could that be interfering with the HC05?

A schematic would be useful so that we can more easily interpret the photos.

I would suggest that you use a software serial port on other pins for the HC05 so that you can use the hardware serial for program upload, program output and debugging.