started cleaning the edit post controller