Ranbir Kapoor and Imtiaz Ali unite onscreen