remove uiControl and add code to index
add get path fuction