refactored get_context_data method into mixin for certain circumstances
refactored more methods to use mixins