fixed bugs with editing content and authorization