removed append button and fixed functionality