Add cancel button at the edit snippet page.
Code clean up.
General improvements.