added edit page for existing post. working on ajax call