fixing controller file