Convert Layout Calls into Classes