Move inline view to view file