Adding selection service and disabling selection after save.
Only reference window through injected $window.
Only call $apply if we're not already in a digest.
Cleanup hack in add dialog and use an expression to calculate the placeholder.