adding todo list and also added get last reading to the php page