Made blogs controller more efficient
Refactored more code to make it more efficent