Added leave network button and authorization