changing views to use constants