Make activity use view files instead of render functions