Added logic so the block can appear on the front page