added attachements to controller