implemented add and delete buttons for pics and scripts