add prompt function for task widget