Added switch for displaying specific view