Refactored TCP code. Added manager modal