added add frame button
added 'addframe' function