adding cache for view