refactored views
minor fix