adding layout main for tablet and modifying messageDialog class