modified ios, android and amazon to support optional action button in addition to close button