editing some changes in controllers