changing parent view to layout view