fixing sharing button behaivor