changed commandEdit for different views