added plugin functionality, admin stats and widget file