edit answer js rendering correctly and cancel button