Better integration with phoenix view layer