Added functionality for the add todo button