Set titles of views based on selection