adding app id to view_table and app show