adding angular IndexCtrl && logic for long url submission