all buttons functionality developed for sharing