made view output more dynamic