Removed button and added a shake detector