editing routes &leave application controller