add renderLayout method to View