bricks: correcting cancel button action