Updated to detect edges and show result, adds landscape and xlarge layouts