Moved getURL from controller. Added comment