create modal mixin for hnadling timescope