changed resolution handling for better results, also linked timeline with queries so user can select timeframe.