Controller inside directive