add cancel button and internet permission