preparations for details view