removed redundant code from tasks.html