is a plugin
check if window exists
cleanup
added request obj