Improvements over plugins

-use setCurrent instead of changeMedia
-clean up some code & few improvements