Implemented the menu. Also, now connection remains open until asked to close by the user