Adding functionaliny for sharing posts