new code with blog entry and photo edit page