added timeout option when blocking for view