modified camera plugin for index page