generate user & leave application controller