JS Moved to edit and add views