added "not found"-handling for posts