Added methods to PostController