Added function to the attach button

Testing functionality