fix bugs in style, add functionality for todo item