gets data from views and concatenates it as a single object