preparations for result view