refactor errors to shared partial, adjust new posts button in layout