changed new component tab to edit tab and adjusted functions and variables accordingly