added tasks functionality and detroy javascript functionality