added controller but is not working