added the screen shot button and logic