replace ns backslash with forward slash in path
add isset check around gadget