fixing cancel button to close activity