Added edit topic logic (with cancel button).