add sequence_limit module

Module for warning pop-up upon reaching the maximum number or deadline of sequence
please refactor the body of the `if` block in a separate method, you will gain indentation levels and clarity in your code.