split UI functions into View.php and make phpcs ignore home.php