Added completion handler to execute after view rendering