Moves logic to PostFragment