Added disconnect feature and some frontend work