created new method get_plugins in utils to remove code duplication in views.py