added authentication and authorization. Minor UI changes