Added "Cancel button" and a library project

Added a cancel button.
Added a static library project for better code reuse experience