Added animations and fixed a bug with the cancel button.