Add cancel button and mock js