background task for disconnecting. Fixed some auto layout problems.