refactor delete and edit project/folder to their model view
add dependent: :delete to model associations