added proper profile editing