Dialog options require dependencies, resolves #2. 
Also did some clean up