cleaned up more code, edit post works with slug no id