Moved confirm modal controller outside of factory