refactored code to lists & lists' tasks model with modal